package OperationSystem.day1201.线程安全_syncchronized.演示synchronized修饰符;

public class showSynchronized {
    //作为方法修饰符
    public synchronized static void staticmethod() {

    }

    public synchronized void method() {

    }

    public void normalmethod() {
        Object o = new Object();
        //修饰代码块
        synchronized (o) {
        }
    }

}
